package com.yyw.gulimall.product.feign.search;

import com.yyw.common.to.productsearch.SpuInfoTo;
import com.yyw.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author 易煜玮
 * @ClassName ProductSearchFeign.java
 * @Description
 * @createTime 2020年11月24日 19:34:00
 */
@FeignClient(name = "gulimall-elasticsearch")
public interface ProductSearchFeign {

    @PostMapping("/search/product/save/skuInfo")
    R saveSkuInfo(@RequestBody List<SpuInfoTo> spuInfoToList);
}
